<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
//
//Route::get('think', function () {
//    return 'hello,ThinkPHP5!';
//});
//
//Route::get('hello/:name', 'index/hello');
use think\facade\Route;

Route::group('admin',function (){
    Route::resource('user','admin/user');
//    Route::any('qiniu/token','first/Qiniu/qiNiuAccess');
//    Route::any('qiniu/upload_ueditor','first/Qiniu/uploadEditor');
//    Route::any('qiniu/del_image','first/Qiniu/qiNiuDelete');
    Route::resource('roles','admin/roles');
    Route::resource('admin','admin/admin');
    Route::resource('log','admin/AdminLog');
    Route::resource('member','admin/Member');
    Route::resource('column','admin/Column');
    Route::resource('auth','admin/Auth');
    Route::resource('article','admin/Article');
    Route::resource('banner','admin/Carousel');
    Route::resource('rechange','admin/RechangeList');
    Route::resource('app','admin/App');
    Route::resource('message','admin/Message');
    Route::resource('dream','admin/Dream');
    Route::resource('dream_comments','admin/DreamComments');
    Route::resource('home_com','admin/HomeCom');
    Route::resource('shop','admin/Shop');
    Route::resource('shop_goods','admin/ShopGoods');
    Route::resource('shop_goods_order','admin/ShopGoodsOrder');
    Route::resource('shop_goods_refund','admin/ShopGoodsRefund');
    Route::resource('shop_goods_transfers','admin/ShopTransfers');
    Route::resource('active','admin/Active');
    Route::resource('active_order','admin/ActiveOrder');


    Route::post('posts','first/AliyunUpload/upload_image');
    Route::post('files','first/AliyunUpload/upload_file');
    Route::any('export','admin/export/export');
    Route::any('export1','admin/export/export1');
    Route::any('export2','admin/export/export2');
    Route::any('export3','admin/export/export3');
});

Route::get('wiki','first/first/Wiki/index');

